package com.swf.jpa.interceptor;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Component;

@Component
public interface Interceptor {

    boolean preIntercept(HttpServletRequest request, HttpServletResponse response) throws IOException, Exception;

    void postIntercept(HttpServletRequest request, HttpServletResponse response) throws IOException, Exception;

}
